<?php
// SomeryC, a webcomic script by Zachary Weston Lewis
// Based on Somery by Robin de Graaf
// Copyright 2005-2006
// SomeryC is distributed under the Artistic License (see LICENSE.txt)
//
// ADMIN/SYSTEM/AUTHORIZATION.PHP > 31-08-2007

session_start();
$checkauth = 0;
$userdata = "";
$user = "";
$pass = "";
$user = $_SESSION['username'];
$pass = $_SESSION['password'];

if (!$user || !$pass) {
	$checkauth = 0;
} else {
	loaduser($user);
	if ($userdata['username']) {
		if ($pass == $userdata['password']) $checkauth = 1;
    else $checkauth = 0;
	}
}
?>
